//
//  FileIO.h
//  pr_fun1
//
//  Created by chenyh on 2021/1/25.
//

#ifndef FileIO_h
#define FileIO_h

#include <stdio.h>
void CreateFile(void);
void OpenFile(void);
void SaveFile(void);
void Exit(void);

typedef struct CmdEntry{
    void(*pfuncmd)(void);
    char cHelp[64];
}CmdEntry;

static CmdEntry cmdArray[10] = {
    {&CreateFile,"新建文件"},
    {&OpenFile,"打开文件"},
    {&SaveFile,"保存文件"},
    {&Exit,"退出"},
    {0,0} //退出
};

#endif /* FileIO_h */
